package org.example.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Talentpool;
import org.example.mapper.TalentpoolMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TalentpoolService extends ServiceImpl<TalentpoolMapper, Talentpool> {
    public List<Talentpool> searchTalents(@Param("status") String status,@Param("keyword") String keyword) {
        return baseMapper.searchTalents(status,keyword);
    }
    public  List<Talentpool> searchTalentsAsc(@Param("status") String status, @Param("keyword") String keyword){
        return baseMapper.searchTalentsAsc(status,keyword);
    }

    public  List<Talentpool> searchTalentsDesc(@Param("status") String status, @Param("keyword") String keyword){
        return baseMapper.searchTalentsDesc(status,keyword);
    }
    public List<Talentpool> findTalentWithResumeByResumeId(@Param("talentResumeId") String talentResumeId){
        return baseMapper.findTalentWithResumeByResumeId(talentResumeId);
    }
}
